/**
 * 
 * @name catchApi
 * @description 测试缓存api
 * 
 * 
*/

exports.catchApi = (req,res) => {
    console.log('强缓存测试 ---- ping');
    res.set('Cache-Control','max-age=100')
    res.send({
        code:200,
        msg:'请求成功---强缓存测试'
    })
}

exports.postcatchApi = (req,res) => {
    console.log('post请求');
    res.set('Cache-Control','max-age=5')
    res.send({
        code:200,
        msg:'请求成功--post请求'
    })
}